package com.itheima.service;


import com.itheima.dao.ProductDao;
import com.itheima.domain.Product;

import java.util.List;

public class ProductService {

    ProductDao productDao = new ProductDao();

    public List<Product> findAll() {
        return productDao.findAll();
    }

    public void add(Product product) {
        productDao.add(product);
    }

    public void delete(Integer id) {
        productDao.delete(id);
    }
}
